<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>栏目列表</title>
<!-- 加载框架js -->
<script type='text/javascript' src='http://localhost/10/1028/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/10/1028/hdphp/hdphp/Extend/Org/hdjs/hdui/css/hdui.css' rel='stylesheet' media='screen'>
<script src='http://localhost/10/1028/hdphp/hdphp/Extend/Org/hdjs/hdui/js/hdui.js'></script>
<link href='http://localhost/10/1028/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/css/hdvalidate.css' rel='stylesheet' media='screen'>
<script src='http://localhost/10/1028/hdphp/hdphp/Extend/Org/hdjs/hdvalidate/js/hdvalidate.js'></script>
<script src='http://localhost/10/1028/hdphp/hdphp/Extend/Org/cal/lhgcalendar.min.js'></script>
<script src='http://localhost/10/1028/hdphp/hdphp/Extend/Org/hdjs/hdslide/js/hdslide.js'></script>
<script type='text/javascript'>
HOST = 'http://localhost';
ROOT = 'http://localhost/10/1028/NQCMS';
WEB = 'http://localhost/10/1028/NQCMS/index.php';
URL = 'http://localhost/10/1028/NQCMS/index.php/Admin/Category/index';
APP = 'http://localhost/10/1028/NQCMS/NQCMS';
COMMON = 'http://localhost/10/1028/NQCMS/NQCMS/Common';
HDPHP = 'http://localhost/10/1028/hdphp/hdphp';
HDPHPDATA = 'http://localhost/10/1028/hdphp/hdphp/Data';
HDPHPEXTEND = 'http://localhost/10/1028/hdphp/hdphp/Extend';
MODULE = 'http://localhost/10/1028/NQCMS/index.php/Admin';
CONTROLLER = 'http://localhost/10/1028/NQCMS/index.php/Admin/Category';
ACTION = 'http://localhost/10/1028/NQCMS/index.php/Admin/Category/index';
STATIC = 'http://localhost/10/1028/NQCMS/Static';
HDPHPTPL = 'http://localhost/10/1028/hdphp/hdphp/Lib/Tpl';
VIEW = 'http://localhost/10/1028/NQCMS/NQCMS/Admin/View';
PUBLIC = 'http://localhost/10/1028/NQCMS/NQCMS/Admin/View/Public';
CONTROLLERVIEW = 'http://localhost/10/1028/NQCMS/NQCMS/Admin/View/Category';
HISTORY = 'http://localhost/10/1028/NQCMS/?m=admin';
</script>
</head>
<body>
	<div class='wrap'>
		<div class="menu_list">
		    <ul>
		        <li><a href="<?php echo U('index');?>"  class="action">栏目列表</a></li>
		        <li><a href="<?php echo U('add');?>">添加栏目</a></li>
		    </ul>
	</div> 
	<table class='table2'>
		<thead>
			<tr>
				<td class='w30'>CID</td>
				<td>栏目名称</td>
				<td class='w200'>操作</td>
			</tr>
		</thead>
		<tbody>
			<?php $hd["list"]["d"]["total"]=0;if(isset($data) && !empty($data)):$_id_d=0;$_index_d=0;$lastd=min(1000,count($data));
$hd["list"]["d"]["first"]=true;
$hd["list"]["d"]["last"]=false;
$_total_d=ceil($lastd/1);$hd["list"]["d"]["total"]=$_total_d;
$_data_d = array_slice($data,0,$lastd);
if(count($_data_d)==0):echo "";
else:
foreach($_data_d as $key=>$d):
if(($_id_d)%1==0):$_id_d++;else:$_id_d++;continue;endif;
$hd["list"]["d"]["index"]=++$_index_d;
if($_index_d>=$_total_d):$hd["list"]["d"]["last"]=true;endif;?>

				<tr>
					<td><?php echo $d['cid'];?></td>
					<td><?php echo $d['_name'];?></td>
					<td>
						<a href="<?php echo U('edit','cid=');?><?php echo $d['cid'];?>">编辑</a> |
						<a href="<?php echo U('addchild','pid=');?><?php echo $d['cid'];?>">添加子栏目</a> |
						<a href="<?php echo U('delete','cid=');?><?php echo $d['cid'];?>" onclick='return confirm("确定删除子目录与所有文章吗?")'>删除</a> |
						<a href="">查看</a>
					</td>
				</tr>
			<?php $hd["list"]["d"]["first"]=false;
endforeach;
endif;
else:
echo "";
endif;?>
		</tbody>
	</table>
	</div>
</body>
</html>
